package com.chis.ms;

import java.io.*;
import java.util.*;

public class T1 {

    public static void main(String[] args) {


//        List<String> l1 = Arrays.asList(s1.split(","));
//        List<String> l2 = Arrays.asList(s2.split(","));
        List<String> l1 = tt("C:\\Users\\wlj\\Desktop\\wlj\\s2.txt");
        List<String> l2 = tt("C:\\Users\\wlj\\Desktop\\wlj\\s1.txt");
        for(String ss : l2){
            if(!l1.contains(ss)){
                System.out.println(ss);
            }
        }

    }

    public static List<String> tt(String path) {
        File file1 = new File(path);
        FileReader m = null;
        try {
            m = new FileReader(file1);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        BufferedReader reader = new BufferedReader(m);
        List<String> list = new ArrayList<>();
        while (true) {
            String nextline = null;
            try {
                nextline = reader.readLine();
                if (nextline != null && nextline.length() > 1) {
                    list.add(nextline);


                }
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (nextline == null) break;
        }
        return list;
    }
}
